<template>
  <div>
    <h1>svg</h1>
    <!-- <img :src="CartIcon" alt="" /> -->
    <img :src="svgs[index % 2]" alt="" />
    <button @click="index += 1">index++</button>
  </div>
</template>

<script setup lang="ts">
// import CartIcon from '@/assets/svg/smart.svg'
import { ref } from 'vue'

import favoritesIcon from '@/assets/svg/live_favorites_fill.svg'
import giftIcon from '@/assets/svg/live_gift_fill.svg'

const svgs = [favoritesIcon, giftIcon]
const index = ref(1)
</script>
